<!DOCTYPE html>
<html>
<head>
    <title>产线-设备位置维护</title>
    #parse("sys/header.html")
</head>
<body>
<div id="sysDept" v-cloak>
    <div v-show="showList">
        <Row :gutter="16" style="margin: 8px 0px 0px 1px">
            <div class="search-group">
                <i-button type="info" @click="reload"><i class="fa fa-refresh"></i>&nbsp;刷新</i-button>
            </div>
            <div class="buttons-group" style="margin-right: 5%">
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;设置平面图</i-button>
                <i-button type="success" @click="setDevCoordinate" v-show="showCoordinateSet"><i class="fa fa-database"></i>&nbsp;坐标维护</i-button>
            </div>
        </Row>
        <div style="height: 85vh;width:15%;overflow:auto;float:left;padding:10px;">
            <!-- 选择部门 -->
            <div id="deptLayer">
                <ul id="deptTree" class="ztree"></ul>
            </div>
        </div>
        <div style="width:80%;height:85vh;overflow:auto;float:left;margin: 10px;">
            <table id="lineCoordinateTable"></table>
        </div>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
        <i-form ref="formValidate" :model="devLineDevCoordinate" :rules="ruleValidate" :label-width="80">
            <Row>
                <i-col span="5">
                    <Form-item label="产线平面图" prop="url">
                        <i-input v-model="devLineDevCoordinate.url" placeholder="请上传产线二维平面图" readonly/>
                    </Form-item>
                </i-col>
                <i-col span="2">
                    <Form-item :label-width="1">
                        <Upload ref="uploadFile" multiple style="width: 300px;" action="../sys/oss/device/analyse"
                                :on-success="handleSuccess"
                                :on-format-error="handleError"
                                :show-upload-list="false"
                                :on-exceeded-size="handleMaxSize">
                            <i-button icon="ios-cloud-upload-outline">上传</i-button>
                        </Upload>
                    </Form-item>
                </i-col>
            </Row>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px">返回</i-button>
            </Form-item>
        </i-form>
    </Card>
</div>
<script src="${rc.contextPath}/js/sys/devlinedevcoordinate.js?_${date.systemTime}"></script>
</body>
</html>
